package template_method.drink;

public abstract class CaffeineBeverage {
    final void prepareRecipe() {
        boilWater();
        brew();
        pourInCup();
        if(custermerWantsCondiments()){
            addCodinments();
        }

    }



    abstract void brew();

    abstract void addCodinments();

    void boilWater() {
        System.out.println("Boiling water");
    }

    void pourInCup() {
        System.out.println("Pouring into Cup");
    }

     boolean custermerWantsCondiments() {
         return true;
    }

}
